#ifndef BSP_DAC_H
#define BSP_DAC_H

#include "gd32f30x.h"
#include "systick.h"

#define BSP_DAC_OUT0_SET_VAL(v) dac_data_set(DAC0, DAC_OUT0, DAC_ALIGN_12B_L, v)
#define BSP_DAC_OUT1_SET_VAL(v) dac_data_set(DAC0, DAC_OUT1, DAC_ALIGN_12B_L, v)

extern void bsp_dac_init(void);

#endif 
